﻿using Mes.Domain.BoundedContext;

namespace Mes.Application.DTO.Results.Operations
{
    /// <summary>
    /// 查询工艺路线实体出参
    /// </summary>
    public class ProcessRouteResult : IdEntityResult
    {
        /// <summary>
        /// 工艺路线编码
        /// </summary>
        public string Code { get; set; } = String.Empty;

        /// <summary>
        /// 工艺路线名称
        /// </summary>
        public string Name { get; set; } = String.Empty;

        /// <summary>
        /// 备注
        /// </summary>
        public string Remark { get; set; } = String.Empty;

        /// <summary>
        /// 路线路径列表
        /// </summary>
        public IList<StdOperEntRouteResult> StdOperEntRouteResults { get; set; } = new List<StdOperEntRouteResult>();
    }

    /// <summary> 
    /// 路径出参
    /// </summary>
    public class StdOperEntRouteResult
    {
        /// <summary>
        /// 工艺（工序）编码
        /// </summary>
        public string Input_Oper_Id { get; set; } = String.Empty;

        /// <summary>
        /// 工艺（工序）名称
        /// </summary>
        public string Input_Oper_Desc { get; set; } = String.Empty;

        /// <summary>
        /// 开始生产单元ID
        /// </summary>
        public int Input_Ent_Id { get; set; }

        /// <summary>
        /// 开始生产单元名称
        /// </summary>
        public string Input_Ent_Name { get; set; }= String.Empty;

        /// <summary>
        /// 加工工序
        /// </summary>
        public int Order { get; set; }
    }

    /// <summary>
    /// 分页查询工艺路线出参
    /// </summary>
    public class ProcessRoutesResult : IdEntityResult
    {
        /// <summary>
        /// 工艺路线编码
        /// </summary>
        public string Code { get; set; } = String.Empty;

        /// <summary>
        /// 工艺路线名称
        /// </summary>
        public string Name { get; set; } = String.Empty;

        /// <summary>
        /// 创建时间
        /// </summary>
        public DateTime CreateTime { get; set; } = DateTime.Now;
    }
}
